﻿using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using VideoClubGorbea.Web.Controllers;
using Moq;
using VideoClubGorbea.Common.Interfaces;
using VideoClubGorbea.Model;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;

namespace VideoClubGorbea.Tests
{
    [TestClass]
    public class MovieTests : TestBase
    {
        [TestMethod]
        public void MovieController()
        {       

            MovieController movieController = new MovieController(MovieServicesFactoryMock.Object)
            {
                ControllerContext = CreateControllerContext()
            };
            var result = movieController.GetMovieById(2);

            MovieServicesFactoryMock.VerifyAll();
            Assert.IsNotNull(result);
        }

       
    }
}
